<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    template="layout/template.xhtml">

    <ui:define name="body">
        <h1>Test</h1>

        <rich:panel>
        	<h:form>
        		<h:commandButton value="test01" action="#{test001.execute()}" />
        	</h:form>
        </rich:panel>
        
        <rich:panel>
        	<h:form>
        		<h:commandButton value="parse page" action="#{parsePageAction.execute()}" />
        	</h:form>
        </rich:panel>

        <rich:panel>
        	<h:form>
        		<h:commandButton value="export DB" action="#{exportImportProcessor.exportDB()}" />
        	</h:form>
        </rich:panel>
        
        <a4j:outputPanel>
			<h:form enctype="multipart/form-data">
				<h:panelGrid columns="1" width="100%" cellpadding="10px">
					<s:fileUpload data="#{testImport001.uploadedData}" accept="text/csv, text/text" required="true"/>
				</h:panelGrid>
				<rich:panel>
					<s:div>
						<h:commandLink reRender="productTable,jQueryPanel" action="#{testImport001.parse()}">
								<h:outputText value="import parse" />
						</h:commandLink>
					</s:div>
				</rich:panel>
			</h:form>

			<h:form enctype="multipart/form-data">
				<h:panelGrid columns="1" width="100%" cellpadding="10px">
					<s:fileUpload data="#{parsePageAction.uploadedData}" accept="text/csv, text/text" required="true"/>
				</h:panelGrid>
				<rich:panel>
					<s:div>
						<h:commandLink reRender="productTable,jQueryPanel" action="#{parsePageAction.execute()}">
								<h:outputText value="parse page" />
						</h:commandLink>
					</s:div>
				</rich:panel>
			</h:form>
 
		</a4j:outputPanel>
        
    </ui:define>
</ui:composition>
